package LeetCode刷题;

/**
 * @program: Java_Study
 * @author: Xiaofan
 * @createTime: 2021-11-04 16:39
 * @description: Functions of this class is
 * class Solution {
 *     public int translateNum(int num) {
 *         String src = String.valueOf(num);
 *         int p = 0, q = 0, r = 1;
 *         for (int i = 0; i < src.length(); ++i) {
 *             p = q;
 *             q = r;
 *             r = 0;
 *             r += q;
 *             if (i == 0) {
 *                 continue;
 *             }
 *             String pre = src.substring(i - 1, i + 1);
 *             if (pre.compareTo("25") <= 0 && pre.compareTo("10") >= 0) {
 *                 r += p;
 *             }
 *         }
 *         return r;
 *     }
 * }
 **/
public class NoNo动态规划把字符串翻译成数字类似于打家劫舍动态规划 {
    public static void main(String args[]){

    }
}